//1-引入mock文件
import Mock from 'mockjs'

//2-创建student接口  
//参数1 /home 接口名  
//参数2 请求方式get post put delete
//参数3 返回前端的数据  

//3-在入口文件引入mock下的index.js
//4-为了防止核心文件臃肿，将数据对象分离出，单独存放

import studentData from './studentData'
// student页面数据的接口
Mock.mock(/\/student/,'get',studentData.getStudentData)

//student发送删除单个数据请求的接口
Mock.mock(/\/delByid/,'post',studentData.DelData)

//student发送批量删除数据请求的接口
Mock.mock(/\/batchdelete/,'post',studentData.batchDelData)

//student发送添加数据请求的接口
Mock.mock(/\/addstudent/,'post',studentData.addStdData)

//student发送编辑数据请求的接口
Mock.mock(/\/editstudent/,'post',studentData.editStdData)